using SqlSugar;

namespace ByteSite.Entitys
{
    /// <summary>
    /// 附件表
    /// </summary>
    public class dt_article_attach
    {
        /// <summary>
        /// 附件表
        /// </summary>
        public dt_article_attach()
        {
        }

        /// <summary>
        /// 自增ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public System.Int32 id { get; set; }

        /// <summary>
        /// 频道ID
        /// </summary>
        public System.Int32? channel_id { get; set; }

        /// <summary>
        /// 文章ID
        /// </summary>
        public System.Int32? article_id { get; set; }

        /// <summary>
        /// 文件名
        /// </summary>
        public System.String file_name { get; set; }

        /// <summary>
        /// 文件路径
        /// </summary>
        public System.String file_path { get; set; }

        /// <summary>
        /// 文件大小(字节)
        /// </summary>
        public System.Int32? file_size { get; set; }

        /// <summary>
        /// 文件扩展名
        /// </summary>
        public System.String file_ext { get; set; }

        /// <summary>
        /// 下载次数
        /// </summary>
        public System.Int32? down_num { get; set; }

        /// <summary>
        /// 积分(正赠送负消费)
        /// </summary>
        public System.Int32? point { get; set; }

        /// <summary>
        /// 上传时间
        /// </summary>
        [Newtonsoft.Json.JsonConverter(typeof(Common.TcDateTimeConverter))]
        public System.DateTime? add_time { get; set; }
        public System.Int32? sort_id { get; set; }
    }
}